var express = require('express')
var app = express()

app.set('view engine', 'jade');

app.use(express.static(__dirname + '/public'));

app.get('/', function (req, res) {
  res.render('index',{title:'首页'});
})
app.get('/signup/:id', function (req, res) {
  res.render('signup',{title:'报名'});
})
app.get('/classes/:type', function (req, res) {
  res.render('classes',{title:'众筹班'});
})
app.get('/courseDetail/:id', function (req, res) {
  res.render('courseDetail',{title:'课程详情'});
})
app.get('/new', function (req, res) {
  res.render('new',{title:'课程详情'});
})
app.get('/userCenter', function (req, res) {
  res.render('userCenter',{title:'个人中心'});
})
app.get('/addAddress', function (req, res) {
    res.render('addAddress',{title:'新增地址'});
})
app.get('/myAddress', function (req, res) {
    res.render('myAddress',{title:'我的地址'});
})
app.get('/basicInfo', function (req, res) {
    res.render('basicInfo',{title:'基本信息'});
})
app.get('/cutPicture', function (req, res) {
    res.render('cutPicture',{title:'如何截图'});
})
app.get('/limitSale', function (req, res) {
    res.render('limitSale',{title:'如何截图'});
})
app.get('/teacherSay', function (req, res) {
    res.render('teacherSay',{title:'师说'});
})
app.get('/liangziOnline', function (req, res) {
    res.render('liangziOnline',{title:'量子在线'});
})
app.get('/myCollect', function (req, res) {
  res.render('mycollect',{title:'我的收藏'});
})
app.get('/myHadBuy', function (req, res) {
  res.render('myHadBuy',{title:'我的已购'});
})
app.get('/videoInfo/:id', function (req, res) {
  res.render('videoInfo',{title:'音频'});
})
app.listen(8000, function () {
  console.log('Example app listening on port 8000!')
})